<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1. 创建formData(文件上传)
        const fd = new FormData()
        // 2. 添加数据
        // fd.append(属性名, 属性值)
        fd.append('name', '小花')
        fd.append('age', 18)

        // 3. 遍历内容
        fd.forEach((value, key)=>{
            console.log(value, key)
        })
        
        console.log(fd);
    </script>
</body>
</html>